// 封装城市定位页相关接口
import request from '@/utils/request.js'

// 获取目的地页省份和有景点的城市数据
export const getCityCategoryService = () => {
	return request({
		url: '/city/category',
		method: 'GET'
	})
}

// 获取热门城市
export const getHotCityService = () => {
	return request({
		url: '/city/hot',
		method: 'GET'
	})
}

// 根据城市名称查询城市ID
export const getCityIDByNameService = (data) => {
	return request({
		url: `/city/name/${data}`,
		method: 'POST'
	})
}